<%-- 
    Document   : common
    Created on : 2013-4-27, 15:45:13
    Author     : Administrator
--%>

<%@page import="org.apache.tomcat.util.http.Cookies"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    Cookie[] cs = request.getCookies();
    String themePath = "";
    for (int i = 0; i < cs.length; i++) {
        if (cs[i].getName().equals("ext-theme")) {
            themePath = cs[i].getValue().substring(4);
        }
    }
    if (themePath == null || themePath.equals("")) {
        themePath = null;
    }
%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="resource/css/common.css"/>
        <%if (themePath == null) {%>
        <link rel="stylesheet" type="text/css" href="resource/js/extjs4.2/resources/ext-theme-classic/ext-theme-classic-all.css"/>
        <%} else {%>
        <link rel="stylesheet" type="text/css" href="<%=themePath%>"/>
        <%}%>
        <!--        <style>
                    *{padding:0;margin:0;font-family: 微软雅黑,Verdana,sans-serif,宋体;font-size: 14px;}
                </style>-->
        <style>
            *{font-family: 微软雅黑,Verdana,sans-serif,宋体;font-size: 14px;}
        </style>
        <script type="text/javascript" src="resource/js/extjs4.2/ext-all.js"></script>
        <script type="text/javascript" src="resource/js/extjs4.2/locale/ext-lang-zh_CN.js"></script>
        <script>
            var Validator = {
                require: /.+/,
                email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
                phone: /^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,
                mobile: /^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/,
                url: /^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,
                idCard: /^\d{15}(\d{2}[A-Za-z0-9])?$/,
                currency: /^\d+(\.\d+)?$/,
                number: /^\d+$/,
                zip: /^[1-9]\d{5}$/,
                qq: /^[1-9]\d{4,8}$/,
                integer: /^[-\+]?\d+$/,
                double: /^[-\+]?\d+(\.\d+)?$/,
                english: /^[A-Za-z]+$/,
                chinese: /^[\u0391-\uFFE5]+$/
            };
        </script>
    </head>
</html>


